package lib.self.adapter.interfaces;

import java.util.List;

/**
 * description:用于二级列表下的adapter
 * author: Steven Xiao
 * date 2018/8/21
 */
public interface ITreeAdapter<T, C> extends IAdapter<T> {
    List<T> getRealData();

    void setRealData();

    void addRealData(List<T> data, int startPosition);

    C getChildItem(int parentPosition, int childPosition);

    T getRealItem(int position);

    T getParentItem(int position);
}
